package com.hl.sfzy.mapper;

import com.hl.sfzy.entity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 20367
* @description 针对表【article(文章表)】的数据库操作Mapper
* @createDate 2025-03-10 11:12:32
* @Entity com.hl.sfzy.entity.Article
*/
@Mapper
public interface ArticleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
    int deleteBatch(List<Long> ids);
    List<Article> selectAll(Article article);
    //咨询师表和文章表多表联查
    List<Article> selectArticleConsultants(Long id);
}
